package com.cwt_taxi_xa;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.cwt_taxi_xa.constants.SPConstants;
import com.cwt_taxi_xa.util.SPUtils;

public class ActivityEnd extends CWTBaseActivity{

	TextView tv_cancel;

	int[] tvids = {R.id.textView1, R.id.textView4, R.id.textView14, R.id.textView15, R.id.textView16, R.id.textView17, R.id.textView18, R.id.textView19, R.id.textView20, R.id.textView21 };
	TextView[] tvs;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.openSwipeBack(false);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_aa_end);

		tv_cancel = (TextView) findViewById(R.id.textView22);
		tv_cancel.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				startActivity(new Intent(ActivityEnd.this, ActivityWaitQD.class));
				finish();
			}
		});

		//设置状态为签退
		SPUtils.setParam(SPConstants.SPK_signin, false);
		ActivityWaitQD.face = false;

		tvs = new TextView[tvids.length];
		for (int i = 0; i < tvs.length; i++) {
			tvs[i] = (TextView) findViewById(tvids[i]);
		}
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		String str = getIntent().getStringExtra("info");
		String[] ss = str.split("-");
		if(ss.length==tvs.length){
			for (int i = 0; i < ss.length; i++) {
				tvs[i].setText(ss[i]);
			}
		}
	}

	@Override
	public void setStatus(int index, boolean status) {
		// TODO Auto-generated method stub

	}

	@Override
	public void sendMsg(int type, Object obj) {
		// TODO Auto-generated method stub

	}

}
